//
//  FavHelper.h
//  FavClient
//
//  Created by MagicStudio on 12-4-17.
//  Copyright 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

enum Type {
    Type_PageCurl = 1,//翻页
    Type_PageUnCurl = 2 ,
    Type_RippleEffect = 3 ,//波浪
    Type_SuckEffect = 4,//抽纸效果
    Type_Cube = 5,//立方体旋转
    Type_OglFilp = 6,
    Type_Swirl = 7,
    Type_ZoomyOut = 8,
    Type_SpewEffect = 9 ,
    Type_CameraIrisHollowOpen = 10,
    Type_CameraIrisHollowClose = 11
};


#pragma Mark- UIAlertViewHelper

@interface UIAlertViewHelper : NSObject  {}
 
//Show a progressDialog 
+(UIAlertView *) showProgressDialog : (NSString *) msg  delegate : (id ) delegate alertSize : (CGSize) size;

@end

#pragma Mark- ViewChangeHelper

@interface ViewChangeHelper : NSObject {}

+(void) changeControllerForSelf : (UIViewController *) appearController disAppearController : (UIViewController * ) disAppearController;
+(void) changeControllerForSelf : (UIViewController *) appearController disAppearController : (UIViewController * ) disAppearController animation:(UIViewAnimationTransition) anim;
//使用CATransition动画进行UIView切换
+(void) changeControllerForSelf : (UIViewController *) appearController disAppearController : (UIViewController * ) disAppearController catTrasition : (CATransition *) anim;
@end

#pragma Mark- UIViewAnimationHelper

@interface UIViewAnimationHelper : NSObject {}

+(void) startAnimation : (NSString *) animName  ;
+(void) endAnimation ;

+(NSString *) getSubTypeByIndex : (NSInteger) index;
+(void) doCATAnimationDefault : (UIView *) view  duration : (CGFloat) duration type:(NSString *) type subType : (NSString *)subType;
+(void) doCATAnimation:(UIView *)view duration:(CGFloat)duration  type:(NSInteger )type ;
+(CATransition *) getCATAnimation :(CGFloat)duration  type:(NSInteger)type  ;
+(CATransition *) getCATAnimation :(CGFloat)duration  type:(NSInteger)type subType:(NSString *) subType ;
+(void) doCATAnimation:(UIView *)view duration:(CGFloat)duration  type:(NSInteger)type subType:(NSString *)subType ;
@end

